<?php
include_once (_CORE_PATH . "lib_prototype.php");
include_once (_CORE_PATH . "libs/minifier/HTML.php");
include_once (_CORE_PATH . "libs/minifier/CSS.php");
include_once (_CORE_PATH . "libs/minifier/Javascript.php");

class minifier_class implements lib_prototype_class
{
    public function MinifyHTML($content, $isJsParse = true, $isCssParse = true)
    {
	    return Minify_HTML::minify($content, array(
			        'cssMinifier' => $isCssParse ? array('Minify_CSS', 'minify') : false,
			        'jsMinifier' => $isJsParse ? array('Minify_Javascript', 'minify') : false
            ));      
    }

    public function MinifyJS($content)
    {
	    return Minify_Javascript::minify($content);      
    } 

    public function MinifyCSS($content)
    {
	    return Minify_CSS::minify($content);      
    }    
}